package com.swa99ylum.pxp.a.a005;

public class Index {
	
	private int value;
	
	@Override
	public String toString() {
		return "Index [value=" + value + "]";
	}
	
	public Index(int value) {
		super();
		this.value = value;
	}
	
	public int increment() {
		return value++;
	}

	/**
	 * getter、setter
	 */
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
}
